package main

import (
	"simple-mail/config"
	"simple-mail/controller"
	"simple-mail/entity"

	"github.com/cihub/seelog"
)

func bootstrap() {
	config.InitLog()
	config.InitConfig()

	entity.InitDb()
	controller.InitRouter()
}

func main() {
	bootstrap()
	seelog.Info("邮件服务已启动")
	controller.StartHTTP()
}
